package cn.zhaoyuening.zshop4j.manager.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Zhao on 2017/4/5.
 */
@Controller
public class PageController {
    @RequestMapping("/")
    public String toIndex() {
        return "index";
    }

    @RequestMapping("/page/{jsp}")
    public String toJsp(@PathVariable("jsp")String jsp) {
        return jsp;
    }
}
